<%@page import="IO.*"%>
<%@page import="domein.*"%>
<%@ page import="java.util.*"%>
<%@include file="header.jsp"%>

<div class="container">

	<div class="innerContainer">

		<div class="section" id="">
			<form class="" action="ToonStudentGegevens.do">

				<label><h2>Studenten</h2></label><br /> voornaam, achternaam, email
				<select multiple="multiple" name="student" class="overzicht">

						<%
							d = new DatabaseIO();
							for (Student s : d.listStudenten()) {
								String student = s.getVoornaam() + ", " + s.getAchternaam()
										+ ", " + s.getEmail();
						%>
						<option value="<%out.print(s.getEmail());%>">
							<%
								out.println(student);
								}
							%>
						
				</select>
					<br />

					<button type="submit" class="btn">Bekijk gegevens</button>
			</form>
			<br /> <a href="index.jsp" class="btn">Terug naar index</a> 
		</div>

	</div>

	<div class="footer">
		<div class="innerContainer">HU copyright &copy; 2012</div>
	</div>

</div>
<!-- /.container -->

</body>
</html>